package com.smart.events.touch {
	
	import com.smart.events.IEventHandler;
	
	import flash.events.Event; 
	
	public class MoveEvent extends Event implements IEventHandler {
		
		static public const MOVE_FLICK:String 	= "moveFlick";
		static public const MOVE_DRAG:String 	= "moveDrag";
		static public const MOVE_RELEASE:String = "moveRelease";
		static public const MOVE_OUT:String 	= "moveOut";
		static public const MOVE_PRESS:String	= "movePress";
		
		private var _handler:*; 
		
		public function MoveEvent(type:String, handler:*, bubbles:Boolean = true, cancelable:Boolean = false) {			
			super(type, bubbles, cancelable);
			_handler = handler; 
		}
		
		// this is mandatory
		override public function clone():Event {
			return new MoveEvent(type, _handler, bubbles, cancelable);
		}			
		
		public function get handler () : * {
			return _handler; 
		}
		
	}
}